
const express=require('express');
const bodyParser=require('body-parser');
var server=express();
server.listen(8088);
//post 数据的接受如果是get则不用bodyParser
//链式操作↓
server.use('/',function(req,res,next){
    console.log(req.body);
   next();
});
server.use('/',function(req,res,next){
    console.log(req.body);
    res.end()
});

